import * as types from '../actionTypes';
import { TableProps, UserProps } from '@/types/userTypes';

/**
 * 这是一个  使用的demo
 */
const initialState: TableProps<UserProps[]> = {
	
};

const userReducer = (state = initialState, action: any) => {
	switch (action.type) {
        case types.GET_USER:
            
			return { ...state, loading: action.value };
		default:
			return state;
	}
};
export default userReducer;